﻿
@model Jxxxh.Data.cw_dirvingschool_new
           <!DOCTYPE html>

<html>
<head>
@Html.Partial("~/Areas/fahrschule/Views/Partial/_header_script.cshtml")
@*<script src="@Url.Content("~/Scripts/fahrschule/chaxun.js")" type="text/javascript"></script>*@
<script src="@Url.Content("~/Scripts/jscom.js")" type="text/javascript"></script>
<script src="/Scripts/KindEditor/kindeditor.js" type="text/javascript"></script>
@*<script src="/Scripts/tiny_mce/langs/zh.js" type="text/javascript"></script>*@
<script type="text/javascript">
    KE.show(
    {
        id: 'editor',
        imageUploadJson: '/Scripts/KindEditor/asp.net/upload_json.ashx',
        fileManagerJson: '/Scripts/KindEditor/asp.net/file_manager_json.ashx',
        filterMode: false
    });
    //获取短信内容
    function setContent() {
       
        //编辑器短信内容
        var cont = KE.util.getData('editor');
        conts = KE.util.escape(cont);
        $("#dsn_content").val(conts);
        content = KE.util.unescape(cont);
        $("#editor").val(conts)
        
    }
    function isNull() {
        if ($.trim($("#title").val()).length == 0) {
            alert('标题不能为空！');
            return false;
        }
        if ($.trim($("#title").val()).length >30) {
            alert('标题过长！');
            return false;
        }
        if (!chk($("#title").val())) {
            return false;
        }

        setContent();
    }

    function locationUrl(url) {
        window.location.href = url;
    }
</script>    
</head>
<body>
    <form id="form1" action="/fahrschule/DrivingSite/newsAdd" method="post">
<div id="right">
<div id="right_nav"></div>
<div class="w800">
<p class="location_jjwz">当前位置：@Html.GetRsStringEx("FahrschulePages.web_jxdt") >> 添加</p>

  @Html.HiddenFor(m=>m.dsn_content)
<table border="0" cellspacing="0" cellpadding="0" class="tablebjq">
  <tr>
    <th align="right" class="wbb"><span>标题：</span></th>
    <td align="left" class="wb"  ><input id="title" name="title" type="text" style="width:400px"/><span  style="color:Red">*</span></td>
  </tr>
  <tr>
    <th align="right" class="wbb"><span>内容：</span></th>
    <td align="left" class="wb"><textarea id="editor" name="content"  style="width:800px;height:400px"/></textarea></td>
  </tr>
  <tr>
    <th align="right" class="wbb"><span>&nbsp;</span></th>
    <td align="left" class="wb">
       <span>
     <input id="Submit1" type="submit" value="" class="qr" onclick="return isNull();" />
    <input id="backbtn" type="button" value="" class="fh" onclick="locationUrl('/fahrschule/DrivingSite/newsList');" />
    </span> 
    </td>
  </tr>
</table>
</div>
  </div>
  </form>
  </body></html>